package com.fany.utils;

import android.app.AlertDialog;
import android.content.Context;
import android.content.ClipboardManager;
import android.content.ClipData;
import com.fany.constants.StringResources;

public class ClipboardUtils
{
	public static void clip(Context context, String content, String hint)
	{
		ClipboardManager cm = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
		ClipData clip = ClipData.newPlainText("data", content);
		cm.setPrimaryClip(clip);
		new AlertDialog.Builder(context).setTitle(StringResources.Hint).setMessage(hint).setPositiveButton(StringResources.Ok, null).show();
	}
}
